import axios from "../../../untils/request.js";

// export function getCos(params) {
//   return request({
//     url: "/Cos",
//     method: "get",
//     params,
//   });
// }
export async function uploadOuterNetSts(data) {
  const res = await axios({
    method: "post",
    url: "/api/global/fs/cos/uploadOuterNetSts",
    data,
    headers: {
     
      "Content-Type": "application/json", //设置请求头请求格式为JSON
    },
    // responseType: "blob",
  });
  return res.data;
}
export async function getStsUploadPath(data) {
    const res = await axios({
      method: "post",
      url: "/api/global/fs/cos/getStsUploadPath",
      data,
      headers: {
    //     Orgid: 28,
    //     Userid: 31,
    //     Logintype: "web",
        "Content-Type": "application/json", //设置请求头请求格式为JSON
      },
      // responseType: "blob",
    });
    return res.data;
  }

  // 上传成功后  上传文档
  export async function docInsert(data) {
    const res = await axios({
      method: "post",
      url: "/api/global/fs/docInsert",
      data,
      headers: {
       
        "Content-Type": "application/json", //设置请求头请求格式为JSON
      },
      // responseType: "blob",
    });
    return res.data;
  }

  // 上传新版本成功后
  export async function docUploadNewVersion(data) {
    const res = await axios({
      method: "post",
      url: "/api/global/fs/docUploadNewVersion",
      data,
      headers: {
       
        "Content-Type": "application/json", //设置请求头请求格式为JSON
      },
      // responseType: "blob",
    });
    return res.data;
  }